package com.yelisheng.simulate;

import com.yelisheng.simulate.core.CpuMemory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SimulateLoadParentApplication implements ApplicationRunner {

    @Autowired
    private CpuMemory cpuMemory;

    public static void main(String[] args) {
        SpringApplication.run(SimulateLoadParentApplication.class, args);
    }

    public void run(ApplicationArguments args) throws Exception {
        cpuMemory.start();
    }
}
